<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="form" uri="http://www.springframework.org/tags/form" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>join form</title>
</head>
<body>
	<h2> 가입 화면 </h2>
	<hr />
	<form:form commandName="user" action="/join.plan" method="post">
		<dl>
			<dt><form:label path="userId">아이디</form:label></dt>
			<dd><form:input path="userId" />
				<form:errors path="userId" />
			</dd>
			<dt><form:label path="password">비밀번호</form:label></dt>
			<dd><form:password path="password" />
				<form:errors path="password" />
			</dd>
			<dt><form:label path="name">이름</form:label></dt>
			<dd><form:input path="name" />
				<form:errors path="name" />
			</dd>
		</dl>
	<input type="submit" value="가입">
	</form:form>
	<hr />
	<a href="/index.do">메인으로</a>
</body>
</html>